#ifndef SUBTHREAD1_H
#define SUBTHREAD1_H

#include <QObject>
#include <QThread>
#include <QDebug>
#include <QMutex>
#include <QTime>
#include <QQueue>
#include <QSql>
#include <QSqlDatabase>
#include <QSqlQuery>
#include <QDate>
#include <QVariantList>


#include "mychart.h"
#include "mychartview.h"

struct MeasureData{
   QTime Time;
   qreal Vms;
   qreal Tms;
};


class SubThread1 : public QObject
{
    Q_OBJECT
public:
    explicit SubThread1(QObject *parent = nullptr);
    void SubThread1_Run(QTime time,qreal vms,qreal tms);
signals:

private:
    QMutex mutex;
    QQueue<MeasureData> measureDataQueue;
    QString tableName;
};

#endif
